<template>
    <el-pagination  @current-change="handleCurrentChange" :current-page.sync="page.pageNumber" :page-size="page.pageSize" layout="total, prev, pager, next, jumper" :total="page.totalRow">
    </el-pagination>
</template>

<script>
export default {
  props: {
    page: {
      type: Object
    }
  },
  methods: {
    handleCurrentChange(val) {
      // console.log(`当前页: ${val}`)
      this.$store.dispatch('getTableData', val).then(() => {
      })
    }
  },
  data() {
    return {
    }
  }
}
</script>
<style scoped>

</style>

